#-------------------------------------------------------------------------------
#!	@file Makefile
#!	@brief
#!		Makefile: dsp_m2s
#!
#!	$Id: Makefile 163 2013-03-03 07:18:56Z ac.verbeck@gmail.com $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#	Copyright and Disclaimer Notice
#
#	Copyright (c) 2013 A.C. Verbeck
#
#	This file is part of DSP lab
#
#	DSP lab is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	DSP lab is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with DSP lab.  If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#	Environment
#-------------------------------------------------------------------------------
CFLAGS		= -Wall -Werror -ggdb -std=c99
LDLIBS		= -lpopt -lsndfile

#-------------------------------------------------------------------------------
#	Build environment
#-------------------------------------------------------------------------------
BLD_TARGET	= bi
BLD_VERSION	= 1.00

#-------------------------------------------------------------------------------
#	Targets
#-------------------------------------------------------------------------------
TARGET		= dsp_m2s

#-------------------------------------------------------------------------------
#	Rules
#-------------------------------------------------------------------------------
.PHONY:	all clean format

all:		$(TARGET)

clean:;		$(RM) *.o
			$(RM) *.bak
			$(RM) *.exe
			$(RM) *.wav *.pkf
			$(RM) *.c.orig
			$(RM) *.h.orig

format:;	astyle --style="k&r" --indent=tab --lineend=windows --recursive "*.c" "*.h"

install:;	cp dsp_m2s ~/bin

#-------------------------------------------------------------------------------
#	Dependencies
#-------------------------------------------------------------------------------
bi.c:
			bldinfo --output=$(BLD_TARGET) --project=$(TARGET) --version=$(BLD_VERSION)		

dsp_base.c:		bi.c

dsp_m2s:		dsp_m2s.o dsp_base.o prt.o bi.o

#
#	End: Makefile
#
